$(function () {
  $.ajax({
    url: "api/login",
    type: "post",
    data: {
      username: "admin",
      password: "admin",
    },
    success: function (res) {
      console.log(res);
      localStorage.setItem("mytoken", res.token);
    },
  });
});
